package com.dems.dao.dataobject;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.List;

/**
 * 分页基本信息
 */
@Data
public class BasePageQuery {

    private String openId;

    /**
     * 开始时间
     */
    private String startDate;

    /**
     * 结束时间
     */
    private String endDate;

    /**
     * 页面大小
     */
    private Integer pageSize = 10;

    /**
     * 页号
     */
    private Integer pageNum = 1;


    // 排序方式
    private String dire = "desc";

    // 排序字段
    private String direCol;

    private String name;

    private String phoneNo;

    private String partnerCode;

    private String keyword;

    private Long id;

    private Long loanId;

    private String userId;

    private Integer bundleStatus;

    private String namesStatus;

    /**
     * 分配类型
     */
    private String type;

    /**
     * 分配来源
     *
     */
    private String source;

    private List<Long> namesIdList;

    /**
     * 外呼列表
     */
    private List<String> callIdList;

    /**
     * 被叫号码
     */
    private List<String> calledList;

    /**
     *
     */
    private List<String> taskIdList;

    /**
     * 外呼账号列表/主叫号码
     */
    private List<String> sipAccountList;

    /**
     * 坐席账号
     */
    private List<String> cUserIdList;

    /**
     * 主管账号
     */
    private List<String> mUserIdList;

    /**
     * 话单状态
     */
    private List<String> statusList;


    /**
     * 通话时长
     */
    private Long minDuration;

    /**
     * 通话时长
     */
    private Long maxDuration;

    /**
     * 任务状态
     */
    private String executionStatus;


    /**
     * 名单供应商
     */
    private String namesSupplier;

    /**
     * 外呼类型
     */
    private String callType;

    /**
     * 手机号所在地
     */
    private String phoneArea;

    private List<AllocationUser> targetAllocationUserList;

    private String callLine;

    @Data
    @AllArgsConstructor
    @NoArgsConstructor
    public static class AllocationUser {
        private String userId;

        private Integer amount;
    }
}
